package main

import (
	"encoding/json"
	"fmt"
	"log"
	"log-agent/conf"
)

func main() {
	var pairs = []*conf.Pair{
		{
			Path:       "/Users/panxinjia/gitee/golangworks/log-agent/app.log",
			BufferSize: 100,
		},
		{
			Path:       "/Users/panxinjia/gitee/golangworks/log-agent/app2.log",
			BufferSize: 100,
		},
	}

	result, err := json.Marshal(pairs)
	if err != nil {
		log.Fatalln(err)
	}
	fmt.Println(string(result))
}
